package com.sjhang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 教材表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbTeach implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 教材id
     */
    @TableId(value = "teach_id", type = IdType.ID_WORKER)
    private Long teachId;

    /**
     * 教材标题
     */
    private String teachTitle;

    /**
     * 教材内容
     */
    private String teachContent;

    /**
     * 大纲id
     */
    private Long outlineId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 更新人id
     */
    private Long updateId;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer deleteFlag;

    /**
     * 版本号
     */
    @Version
    private Integer versionFlag;

}
